package com.yozinga.twitter;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.yozinga.R;

public class MainActivity extends Activity {

	public EditText mEditText;
	private SharedPreferences mSharedPreferance;
	private Editor mEditor;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main1);
		mEditText = (EditText) findViewById(R.id.edittext);
		mSharedPreferance = getSharedPreferences("Yozinga", 0);
	}

	public void sendTwitter(View v){
		mEditor = mSharedPreferance.edit();
		mEditor.putString("ABC", mEditText.getText().toString());
		mEditor.commit();
		//startActivity(new Intent(MainActivity.this,TwitterHomeActivity.class));
				
	}
}
                 